import http from './http'
// https://api-hmugo-web.itheima.net/api/public/v1/goods/search
export const searchApi=(query)=>{
    return http({
        url:'https://api-hmugo-web.itheima.net/api/public/v1/goods/search',
        method:'GET',
        params:{
            query
        }
    })
}
// /api/order/pay
export const payApi=(data)=>{
    return http({
        url:'http://localhost:12345/api/order/pay',
        method:'POST',
        data:{
            ...data
        }
    })
}